home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cups-driver-gutenprint.preinst < prev    next >
Text File  |  2009-09-18  |  1KB  |  39 lines

  1. #! /bin/sh
  2. # preinst script for cups-driver-gutenprint
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <new-preinst> `install'
  10. #        * <new-preinst> `install' <old-version>
  11. #        * <new-preinst> `upgrade' <old-version>
  12. #        * <old-preinst> `abort-upgrade' <new-version>
  13.  
  14. case "$1" in
  15. install|upgrade)
  16.     # Remove generated PPDs
  17.     # (note: user-generated now we no longer generate them automatically)
  18.     # This is to ensure stale PPDs from previous versions are removed.
  19.     # When Gutenprint no longer allows the user to generate PPDs, make
  20.     # this into a versioned check.
  21.     rm -rf /usr/share/cups/model/gutenprint/5.2
  22.     rmdir /usr/share/cups/model/gutenprint 2>/dev/null || true
  23.     rm -rf /usr/share/ppd/gutenprint/5.2
  24.     rmdir /usr/share/ppd/gutenprint 2>/dev/null || true
  25.  
  26.     # Remove /etc/command.types (moved to
  27.     # /usr/share/cups/mime/command.types).
  28.     if dpkg --compare-versions "$2" le "5.0.2-2"; then
  29.     rm -f /etc/cups/command.types
  30.     fi
  31. esac
  32.  
  33. # dh_installdeb will replace this with shell code automatically
  34. # generated by other debhelper scripts.
  35.  
  36.  
  37.  
  38. exit 0
  39.